package com.muyu.danmo.service.impl;


import com.muyu.danmo.domain.DanmoGalleryExhibitionType;
import com.muyu.danmo.mapper.DanmoGalleryExhibitionTypeMapper;
import com.muyu.danmo.service.IDanmoGalleryExhibitionTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 展览方式Service业务层处理
 *
 * @author yangle
 * @date 2024-10-23
 */
@Service
public class DanmoGalleryExhibitionTypeServiceImpl implements IDanmoGalleryExhibitionTypeService
{
    @Autowired
    private DanmoGalleryExhibitionTypeMapper danmoGalleryExhibitionTypeMapper;

    /**
     * 查询展览方式
     *
     * @param id 展览方式主键
     * @return 展览方式
     */
    @Override
    public DanmoGalleryExhibitionType selectDanmoGalleryExhibitionTypeById(Long id)
    {
        return danmoGalleryExhibitionTypeMapper.selectDanmoGalleryExhibitionTypeById(id);
    }

    /**
     * 查询展览方式列表
     *
     * @param danmoGalleryExhibitionType 展览方式
     * @return 展览方式
     */
    @Override
    public List<DanmoGalleryExhibitionType> selectDanmoGalleryExhibitionTypeList(DanmoGalleryExhibitionType danmoGalleryExhibitionType)
    {
        return danmoGalleryExhibitionTypeMapper.selectDanmoGalleryExhibitionTypeList(danmoGalleryExhibitionType);
    }

    /**
     * 新增展览方式
     *
     * @param danmoGalleryExhibitionType 展览方式
     * @return 结果
     */
    @Override
    public int insertDanmoGalleryExhibitionType(DanmoGalleryExhibitionType danmoGalleryExhibitionType)
    {
        return danmoGalleryExhibitionTypeMapper.insertDanmoGalleryExhibitionType(danmoGalleryExhibitionType);
    }

    /**
     * 修改展览方式
     *
     * @param danmoGalleryExhibitionType 展览方式
     * @return 结果
     */
    @Override
    public int updateDanmoGalleryExhibitionType(DanmoGalleryExhibitionType danmoGalleryExhibitionType)
    {
        return danmoGalleryExhibitionTypeMapper.updateDanmoGalleryExhibitionType(danmoGalleryExhibitionType);
    }

    /**
     * 批量删除展览方式
     *
     * @param ids 需要删除的展览方式主键
     * @return 结果
     */
    @Override
    public int deleteDanmoGalleryExhibitionTypeByIds(Long[] ids)
    {
        return danmoGalleryExhibitionTypeMapper.deleteDanmoGalleryExhibitionTypeByIds(ids);
    }

    /**
     * 删除展览方式信息
     *
     * @param id 展览方式主键
     * @return 结果
     */
    @Override
    public int deleteDanmoGalleryExhibitionTypeById(Long id)
    {
        return danmoGalleryExhibitionTypeMapper.deleteDanmoGalleryExhibitionTypeById(id);
    }
}
